package com.socodethis.spaceex;

import com.badlogic.gdx.Gdx;
import com.socodethis.spaceex.math.cPoint;

class simpleNode{
	private cPoint exit;
	private int dungeon;
	public simpleNode(simpleNode node){
		this(node.dungeon, node.exit);
	}
	public simpleNode(int dungeon, cPoint exit){
		this.dungeon = dungeon;
		this.exit = new cPoint(exit);
	}
	public cPoint getExit(){
		return exit;
	}
	public int getDungeon(){
		return dungeon;
	}
	public boolean isEqual(simpleNode node){
		if(node.exit.cEquals(this.exit) && node.dungeon == this.dungeon){
			return true;
		}
		return false;
	}
	public void printNode(){
		Gdx.app.log("simpleNode","Dungeon: " + dungeon);
		Gdx.app.log("simpleNode","Exit: " + exit.getX() + " - " + exit.getY());
	}
}